<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-CN">
<!--<![endif]-->

<!-- BEGIN HEAD-->
<head>
    <meta charset="UTF-8"/>
    <title>${param.title}</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <![endif]-->

    <!-- GLOBAL STYLES -->
    <link rel="stylesheet"
          href="<c:url value='/resources/plugins/bootstrap/css/bootstrap.css'/>"/>
    <link rel="stylesheet" href="<c:url value='/resources/css/main.css'/>"/>
    <link rel="stylesheet" href="<c:url value='/resources/css/theme.css'/>"/>
    <link rel="stylesheet" href="<c:url value='/resources/css/admin.css'/>"/>
    <link rel="stylesheet"
          href="<c:url value='/resources/plugins/Font-Awesome/css/font-awesome.css'/>"/>
    <!--END GLOBAL STYLES -->

    <!-- PAGE LEVEL STYLES -->
    <!-- END PAGE LEVEL  STYLES -->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="<c:url value='/resources/plugins/html5shiv-3.7.0.js'/>"></script>
    <script src="<c:url value='/resources/plugins/respond.min-1.3.0.js'/>"></script>
    <![endif]-->
</head>
<!-- END  HEAD-->
<!-- BEGIN BODY-->
<body class="padTop53 ">

<!-- MAIN WRAPPER -->
<div id="wrap">

    <!-- HEADER SECTION -->
    <div id="top">

        <nav class="navbar navbar-inverse navbar-fixed-top "
             style="padding-top: 10px;">
            <a data-original-title="Show/Hide Menu" data-placement="bottom"
               data-tooltip="tooltip"
               class="accordion-toggle btn btn-primary btn-sm visible-xs"
               data-toggle="collapse" href="#menu" id="menu-toggle"> <i
                    class="icon-align-justify"></i>
            </a>
            <!-- LOGO SECTION -->
            <header class="navbar-header">
                <a href="#" class="navbar-brand">易居二手房系统管理</a>
            </header>
            <!-- END LOGO SECTION -->
            <ul class="nav navbar-top-links navbar-right">

                <!--ADMIN SETTINGS SECTIONS -->

                <li class="dropdown">
                    <shiro:hasPermission name="system:*">
                    <a class="dropdown-toggle"
                                        data-toggle="dropdown" href="#"> 系统管理员<i class="icon-user "></i>&nbsp;
                    <i class="icon-chevron-down "></i>
                    </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="shopAgent:*">
                        <a class="dropdown-toggle"
                           data-toggle="dropdown" href="#"> 门店经纪人<i class="icon-user "></i>&nbsp;
                            <i class="icon-chevron-down "></i>
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="shopManager:*">
                        <a class="dropdown-toggle"
                           data-toggle="dropdown" href="#"> 门店经理<i class="icon-user "></i>&nbsp;
                            <i class="icon-chevron-down "></i>
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="customerService:*">
                        <a class="dropdown-toggle"
                           data-toggle="dropdown" href="#"> 客服人员<i class="icon-user "></i>&nbsp;
                            <i class="icon-chevron-down "></i>
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="user:*">
                        <a class="dropdown-toggle"
                           data-toggle="dropdown" href="#"> 个人<i class="icon-user "></i>&nbsp;
                            <i class="icon-chevron-down "></i>
                        </a>
                    </shiro:hasPermission>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="${pageContext.request.contextPath}/system/person/personInfo"><i class="icon-user"></i> 个人资料 </a></li>
                        <%--<li><a href="#"><i class="icon-gear"></i> 设置 </a></li>--%>
                        <li class="divider"></li>
                        <li><a href="${pageContext.request.contextPath}/system/person/logout"><i class="icon-signout"></i>
                            退出登录 </a></li>
                    </ul>
                </li>
                <!--END ADMIN SETTINGS -->
            </ul>

        </nav>

    </div>
    <!-- END HEADER SECTION -->


    <!-- MENU SECTION -->
    <div id="left">
        <div class="media user-media well-small">
            <!-- <a class="user-link" href="#">
            </a> <br /> -->
            <div class="media-body">
                <h5 class="media-heading"></h5>
                <ul class="list-unstyled user-info">

                </ul>
            </div>
            <br/>
        </div>

        <ul id="menu" class="collapse">


            <li class="panel active"><a href="${pageContext.request.contextPath}"> <i
                    class="icon-table"></i> 工作台
            </a></li>

            <%--系统管理员权限功能--%>
            <shiro:hasPermission name="system:*">
                <li class="panel"><a href="#" data-parent="#menu"
                                     data-toggle="collapse" class="accordion-toggle collapsed"
                                     data-target="#game-nav"> <i class="icon-group"></i> 系统管理
                    <span class="pull-right"> <i class="icon-angle-left"></i></span>
                </a>
                    <ul class="collapse" id="game-nav">

                        <li class=""><a href="${pageContext.request.contextPath}/system/user/list"><i
                                class="icon-angle-right"></i> 用户管理 </a></li>
                        <li class=""><a href="${pageContext.request.contextPath}/system/role/list"><i
                                class="icon-angle-right"></i> 角色管理 </a></li>
                        <li class=""><a href="${pageContext.request.contextPath}/system/permission/list"><i
                                class="icon-angle-right"></i> 权限管理 </a></li>

                    </ul>

                </li>

                <li class="panel"><a href="#" data-parent="#menu"
                                     data-toggle="collapse" class="accordion-toggle collapsed"
                                     data-target="#game-nav3"> <i class="icon-group"></i> 基础码表管理
                    <span class="pull-right"> <i class="icon-angle-left"></i></span>
                </a>
                    <ul class="collapse" id="game-nav3">

                        <li class=""><a href="${pageContext.request.contextPath}/system/codetype/list"><i
                                class="icon-angle-right"></i> 码表类管理 </a></li>
                        <li class=""><a href="${pageContext.request.contextPath}/system/code/list"><i
                                class="icon-angle-right"></i> 码表管理 </a></li>

                    </ul>

                </li>
            </shiro:hasPermission>
            <shiro:hasPermission name="system:*">
                <li class="panel"><a href="#" data-parent="#menu"
                                     data-toggle="collapse" class="accordion-toggle collapsed"
                                     data-target="#game-nav2"> <i class="icon-group"></i> 需求管理
                    <span class="pull-right"> <i class="icon-angle-left"></i></span>
                </a>
                    <ul class="collapse" id="game-nav2">

                        <li class=""><a href="${pageContext.request.contextPath}/system/demand/list"><i
                                class="icon-angle-right"></i> 需求管理 </a></li>

                    </ul>

                </li>
            </shiro:hasPermission>

            <shiro:hasPermission name="system:*">
                <li class="panel"><a href="#" data-parent="#menu"
                                     data-toggle="collapse" class="accordion-toggle collapsed"
                                     data-target="#game-nav4"> <i class="icon-group"></i> 投诉管理
                    <span class="pull-right"> <i class="icon-angle-left"></i></span>
                </a>
                    <ul class="collapse" id="game-nav4">

                        <li class=""><a href="${pageContext.request.contextPath}/system/complaint/list"><i
                                class="icon-angle-right"></i> 用户投诉 </a></li>

                    </ul>

                </li>
            </shiro:hasPermission>

            <%--人才管理--%>
            <shiro:hasPermission name="system:*">
                <li class="panel"><a href="#" data-parent="#menu"
                                     data-toggle="collapse" class="accordion-toggle collapsed"
                                     data-target="#game-nav6"> <i class="icon-group"></i> 人才管理
                    <span class="pull-right"> <i class="icon-angle-left"></i></span>
                </a>
                    <ul class="collapse" id="game-nav6">

                        <li class=""><a href="${pageContext.request.contextPath}/system/resume/list"><i
                                class="icon-angle-right"></i> 简历管理 </a></li>
                        <li class=""><a href="${pageContext.request.contextPath}/system/recruitment/list"><i
                                class="icon-angle-right"></i> 招聘信息管理 </a></li>

                    </ul>

                </li>
            </shiro:hasPermission>
            <li class="panel"><a href="#" data-parent="#menu"
                                 data-toggle="collapse" class="accordion-toggle"
                                 data-target="#error-nav"> <i class="icon-warning-sign"></i>
                Error Pages <span class="pull-right"> <i
                        class="icon-angle-left"></i>
					</span> &nbsp; <span class="label label-warning">5</span>&nbsp;
            </a>
                <ul class="collapse" id="error-nav">
                    <li><a href="403.html"><i class="icon-angle-right"></i>
                        Error 403 </a></li>
                    <li><a href="404.html"><i class="icon-angle-right"></i>
                        Error 404 </a></li>
                    <li><a href="405.html"><i class="icon-angle-right"></i>
                        Error 405 </a></li>
                    <li><a href="500.html"><i class="icon-angle-right"></i>
                        Error 500 </a></li>
                    <li><a href="503.html"><i class="icon-angle-right"></i>
                        Error 503 </a></li>
                </ul>
            </li>

        </ul>

    </div>
    <!--END MENU SECTION -->


    <!--PAGE CONTENT -->
    <div id="content">

        <div class="inner" style="min-height: 1200px;">${param.body}</div>
    </div>
    <!--END PAGE CONTENT -->

</div>

<!--END MAIN WRAPPER -->

<!-- FOOTER -->
<div id="footer">
    <p>&copy; ole &nbsp;2015 &nbsp;</p>
</div>
<!--END FOOTER -->
<!-- GLOBAL SCRIPTS -->
<script src="<c:url value='/resources/plugins/jquery-2.0.3.min.js'/>"></script>
<script
        src="<c:url value='/resources/plugins/bootstrap/js/bootstrap.min.js'/>"></script>
<script
        src="<c:url value='/resources/plugins/modernizr-2.6.2-respond-1.1.0.min.js'/>"></script>
<!-- END GLOBAL SCRIPTS -->
</body>
<!-- END BODY-->

</html>
